package cn.iocoder.yudao.module.mzt.controller.admin.article.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 文章 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ArticleRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8132")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("图片")
    private String cover;

    @Schema(description = "摘要")
    @ExcelProperty("摘要")
    private String summary;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("mzt_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "推荐", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "推荐", converter = DictConvert.class)
    @DictFormat("mzt_recommend") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer recommend;

    @Schema(description = "浏览量", requiredMode = Schema.RequiredMode.REQUIRED, example = "16836")
    @ExcelProperty("浏览量")
    private Long viewCount;

    @Schema(description = "点赞数", requiredMode = Schema.RequiredMode.REQUIRED, example = "7391")
    @ExcelProperty("点赞数")
    private Long likeCount;

    @Schema(description = "SEO标题")
    @ExcelProperty("SEO标题")
    private String seoTitle;

    @Schema(description = "SEO关键词")
    @ExcelProperty("SEO关键词")
    private String seoKeywords;

    @Schema(description = "SEO描述", example = "你猜")
    @ExcelProperty("SEO描述")
    private String seoDescription;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "分类名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("分类名字")
    private String categoryName;

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "绑定文章标签", example = "1")
    private List<Long> tagIds;
}
